﻿@model CMSApplication.Models.ResourceModel

<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Upload", "Resource", FormMethod.Post, 
         new { enctype = "multipart/form-data" })) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Add a Resource</legend>
           <input type="file" name="file" id="file" />
           <input type="submit" value="Create" />
        
    </fieldset>
         }

<div>
    @Html.ActionLink("Back to List", "Sites/Index");  @*Redirect wherever you want*@
</div>

